<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!doctype html>
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>流程审批</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<jsp:include page="/WEB-INF/views/common.jsp"></jsp:include>
	<script type="text/javascript" src="<%=path%>/resources/script/proms/taskWorkflow/taskWorkflow_handle.js"></script>

  </head>
  
  <body>
    <div class="easyui-layout" fit="true">
   		<div region="center" border="false">
			<form id="form" method="post">
				<input id="id" name="id" type="hidden" value="${task.id }"/>
				<input id="taskId" name="taskId" type="hidden" value="${taskId }"/>
				<input id="isTaskPlan" name="isTaskPlan" type="hidden" value="${isTaskPlan }" />
				<table class="edit-table">
					<tr>
						<th>所属指标：</th>
						<td>
							<label>${task.projectIndexName }</label>
							<%-- <input id="projectIndexId" name="projectIndexId" value="${task.projectIndexId }" class="easyui-validatebox" style="width: 250px;" />
							<input id="pId_clear_btn" name="pId_clear_btn" type="button" value="清空" style="width: 50px;"/> --%>
						</td>
					</tr>
					<tr>
						<th>主题：</th>
						<td>
							<label>${task.name }</label>
						</td>
					</tr>
					<tr>
						<th>计划完成时间段：</th>
						<td><label>${task.startTime }</label>~<label>${task.endTime }</label>
					</tr>
					<tr>
						<th>计划使用资金：</th>
						<td>
							<label>￥ ${task.planAmount }</label>
						</td>
					</tr>
					<tr>
						<th>任务内容:</th>
						<td><textarea id="remark" name="remark" class="easyui-validatebox" style="width: 300px;height: 80px;">${task.remark }</textarea></td>
					</tr>
					<tr id="task_plan_tr">
						<th>任务计划</th>
						<td><table id="dg_task_plan"></table></td>
					</tr>
					<tr>
						<th>预佐证材料：</th>
						<td><div id="_fileupload"></div></td>
					</tr>
				</table>
				<%@include file="/WEB-INF/views/common/startWorkflow.jsp"%>
			</form>
   		</div>
   		<div region="south" border="false" style="text-align: right; height: 35px; line-height: 8px; padding:5px 5px 0 0;">
   			<!-- <a id="btnSave" class="easyui-linkbutton" icon="icon-ok" href="javascript:void(0);">提交</a> -->
   			<c:forEach var="oper" items="${operateList }">
   				<a id="${oper.operateEvent }" class="easyui-linkbutton" icon="${oper.iconCls }" href="javascript:void(0);">${oper.operateName }</a>
   			</c:forEach>
   			<a id="btnCancel" class="easyui-linkbutton" icon="icon-cancel" href="javascript:void(0);">取消</a>
   		</div>
   		
   		<!-- add/edit taskplan window -->
	    <div id="win" class="easyui-window"
	    	 data-options="modal:true,
	    	 				closed:true,
	    	 				maximizable:true,
	    	 				minimizable:false,
	    	 				collapsible:false,
	    	 				iconCls:'icon-save',
	    	 				draggable:true">
	    	 <iframe id="contentFrame" src="" width=100% height=99% marginwidth=0 framespacing=0 marginheight=0 frameborder=no scrolling=no></iframe>
	    </div>
   	</div>
  </body>
</html>
